home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
var
/
lib
/
dpkg
/
info
/
time.preinst
< prev
next >
Wrap
Text File
|
2008-08-07
|
792b
|
38 lines
#!/bin/sh
#
# This is the preinst script for the Debian GNU/Linux time package
#
# Written by Dirk Eddelbuettel <edd@debian.org>
set -e
case "$1" in
upgrade)
# This is needed for time_1.7-4 as it calls update-menus only on
# remove or purge. As dhelp drops this file here which is outside the
# package manager's scope, and hence not removed unless update-menus is
# called, but this happens too late
if [ -f /usr/doc/time/.dhelp ]
then
rm /usr/doc/time/.dhelp
fi
#
# There could also be an empty dir left, let's remove it
#if [ -d /usr/doc/time ]
#then
# rmdir /usr/doc/time
#fi
;;
remove|purge)
;;
install|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
;;
esac
exit 0